#include"tcpserver.hpp"
#include"common.hpp"
int main(int argc,char *argv[])
{
    if(argc!=2)
    {
        std::cout<<"youshould enter the port number"<<std::endl;
        return 1;
    }
    uint16_t port  = std::stoi(argv[1]);

    std::unique_ptr<tcpserver> tver = std::make_unique<tcpserver>(port);
    tver->init();
    tver->start();
    return 0;
}